<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button class="button">点击我</button>
    </div>
    
    <script src="https://cdn.bootcss.com/jquery/1.7.2/jquery.min.js"></script>
    <script>
        $(function(){
            $('button').click(function(){
                skupage.reload();
            });

            var utils = {
                loadPageData:function(options){
                    function loadData(){
                        options.render();
                    };
                    return {
                        reload:function(){
                            loadData();
                        }
                    }
                }
            }
            
            var skupage = utils.loadPageData({
                render:function(){
                    //alert('成功回调！！！');
                    var $app = $("#app");
                    $app.find('p').empty();
                    $app.append('<p>成功回调！！！</p>');
                }
            });

        })
    </script>
</body>
</html>